﻿//-----------------------------------------------------------------------
// <copyright file="MessageBox.xaml.cs" company="O-RID">
//     Copyright (c)2010 O-RID Co.,Ltd.
// </copyright>
// <author>Zhang jun</author>
// <summary>消息对话框</summary>
//-----------------------------------------------------------------------

namespace Orid.Management.Statistics.OperatorUnitMangement.Common.Window
{
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Media.Imaging;
    using System;

    /// <summary>
    /// 公用消息子窗体
    /// MessageBox
    /// </summary>
    public partial class MessageBox : System.Windows.Controls.ChildWindow
    {
        /// <summary>
        /// 构造函数
        /// MessageBox
        /// </summary>
        public MessageBox()
        {
            InitializeComponent();

            // 引用主题
            ((App)Application.Current).SetTheme((Grid)LayoutRoot);
           // BitmapImage bi = new BitmapImage(new Uri("../../Resource/Image/1.png", UriKind.RelativeOrAbsolute));
            
        } 

        /// <summary>
        /// OK按钮点击事件
        /// OKButton_Click
        /// </summary>
        /// <param name="sender">sender ob object</param>
        /// <param name="e">e type of RoutedEventArgs</param>
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        /// <summary>
        /// Cancel按钮点击事件
        /// CancelButton_Click
        /// </summary>
        /// <param name="sender">sender of object</param>
        /// <param name="e">e type of RoutedEventArgs</param>
        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}

